// 设定数据库数据规则

// 引入数据库mongoose模块
const  mongoose= require("mongoose");

//设定规则
module.exports = new mongoose.Schema(
    {
        name: {
            type: String,
            require: true,
            uniqure:true,
        },
        password: {
            type: String,
            require:true,
        },
        r_date: {
            type: Date,
            default:Date.now()
        },
        enable: {
            type: Boolean,
            default:true,
        }
    }
)
